<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : CadastrarDespesa
    Created on : 08/12/2009, 13:46:28
    Author     : Administrador
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
                <script>
                    function mascara(o,f){
                        v_obj=o;
                        v_fun=f;
                        setTimeout("execmascara()",1);
                    }
                    /* Função para executar a mascara */
                    function execmascara(){
                        v_obj.value=v_fun(v_obj.value);
                    }
                    /* Função para receber apenas números */
                    function soNumeros(v){
                        v= v.replace(/\D/gi,'');
                        return v;
                    }
                    function hidden(){
                        document.body.style.overflow='hidden';                    
                    }
                </script>
                <title> Gerenciamento de Despesas</title>
            </ice:outputHead>
            <body onload="hidden()">
                <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                    <ice:form id="form1">
                        <ice:panelPopup autoCentre="true" binding="#{Financeiro$CadastrarDespesa.painelSair}" draggable="false" id="painelSair" modal="true"
                            rendered="#{Financeiro$CadastrarDespesa.panelPopup1Bean.showDraggablePanel}"
                            style="height: 210px; left: 120px; top: 408px; position: absolute; width: 405px" visible="#{Financeiro$CadastrarDespesa.panelPopup1Bean.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelSairCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText id="msgSairTitulo" value="  Sair"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelSairCorpo" layout="flow" style="display: block; font-family: Verdana,Arial,Helvetica,sans-serif; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText id="msgPainelSair"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 18px; left: 24px; top: 24px; position: absolute; text-align: center; width: 357px" value="Tem certeza que deseja sair dessa tela?"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarDespesa.botaoSairSim_action}" id="botaoSairSim"
                                        image="/resources/botaoSim.png" immediate="true" partialSubmit="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 30%; top: 55%; position: absolute" value="Sim"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarDespesa.botaoSairNao_action}" id="botaoSairNao"
                                        image="/resources/botaoNao.png" immediate="true" partialSubmit="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; right: 30%; top: 55%; position: absolute" value="Não"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <ice:panelGroup id="painelGeral" style="height: 768px; margin-left: -512px; left: 50%; top: 0px; position: absolute; width: 1024px">
                            <ice:graphicImage id="imagemFundo"
                                style="height: 768px; margin-left: -512px; left: 50%; top: 0px; position: absolute; width: 1024px" value="/resources/telaDespesas.jpg"/>
                            <ice:panelLayout id="painelConteudo" layout="flow" style="font-family: 'Courier New',Courier,monospace; font-size: 14px; height: 620px; left: 2%; top: 12%; position: absolute; width: 980px; -rave-layout: grid">
                                <ice:outputText id="labelAssociado"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 0px; top: 96px; position: absolute; text-align: right; width: 262px" value="Associado:"/>
                                <ice:outputText id="labelDescricao"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 0px; top: 120px; position: absolute; text-align: right; width: 262px" value="Descrição:"/>
                                <ice:outputText id="labelValorDespesa"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 0px; top: 144px; position: absolute; text-align: right; width: 262px" value="Valor Despesa:"/>
                                <ice:outputText id="labelValorAtual"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 0px; top: 168px; position: absolute; text-align: right; width: 262px" value="Valor Atualizado:"/>
                                <ice:selectOneMenu id="comboAssociado" partialSubmit="true"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; left: 262px; top: 94px; position: absolute; width: 230px"
                                    title="Selecione um Associado." value="#{Financeiro$CadastrarDespesa.associadoSelecionado.selectedObject}">
                                    <f:selectItems id="selectOneMenu1selectItems" value="#{Financeiro$CadastrarDespesa.associados}"/>
                                </ice:selectOneMenu>
                                <ice:inputText id="campoDescricao" maxlength="100" partialSubmit="true"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; left: 262px; top: 118px; position: absolute; width: 230px" title="Defina a descrição da despesa."/>
                                <ice:inputText id="campoValorDespesa" maxlength="12" onkeypress="mascara(this,soNumeros);" partialSubmit="true" required="true"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; left: 262px; top: 142px; position: absolute; width: 230px" title="Insira o valor da despesa."/>
                                <ice:outputText id="campoValorAtual" style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; left: 264px; top: 168px; position: absolute; text-align: right; width: 230px"/>
                                <ice:panelLayout id="painelOpcoes" layout="flow" style="height: 46px; left: 0px; top: 0px; position: absolute; width: 980px; -rave-layout: grid">
                                    <ice:commandButton alt="Novo" id="botaoNovo" image="/resources/botaoNovo.png" immediate="true"
                                        style="height: 45px; left: 168px; top: 0px; position: absolute; width: 64px" title="Novo" value="Novo"/>
                                    <ice:commandButton alt="Consultar" id="botaoConsultar" image="/resources/botaoConsultar.png" immediate="true"
                                        partialSubmit="true" style="height: 45px; left: 240px; top: 0px; position: absolute; width: 64px" title="Consultar" value="Consultar"/>
                                    <ice:commandButton alt="Alterar" id="botaoAlterar" image="/resources/botaoAlterar.png" immediate="true"
                                        style="height: 45px; left: 312px; top: 0px; position: absolute; width: 64px" title="Alterar" value="Alterar"/>
                                    <ice:commandButton alt="Imprimir" id="botaoImprimir" image="/resources/botaoImprimir.png" immediate="true"
                                        style="height: 45px; left: 386px; top: 0px; position: absolute; width: 64px" title="Imprimir" value="Imprimir"/>
                                    <ice:commandButton alt="Cadastrar" id="botaoCadastrar1" image="/resources/botaoSalvar.png"
                                        style="height: 45px; left: 456px; top: 0px; position: absolute; width: 64px" title="Salvar/Cadastrar" value="Cadastrar"/>
                                    <ice:commandButton alt="Limpar" id="botaoLimpar" image="/resources/botaoLimpar.png" immediate="true"
                                        style="height: 45px; left: 528px; top: 0px; position: absolute; width: 64px" title="Limpar Campos" type="reset" value="Limpar"/>
                                    <ice:commandButton action="#{Financeiro$CadastrarDespesa.botaoSair_action}" id="botaoSair" image="/resources/botaoSair.png"
                                        immediate="true" partialSubmit="true" style="height: 45px; left: 912px; top: 0px; position: absolute; width: 64px"
                                        title="Sair" value="Sair"/>
                                </ice:panelLayout>
                            </ice:panelLayout>
                        </ice:panelGroup>
                    </ice:form>
                </ice:outputBody>
            </body>
        </ice:outputHtml>
    </f:view>
</jsp:root>
